package com.liusr.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Liusr
 * @date 2023/9/15
 * @package com.liusr.config
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Component
@ConfigurationProperties(prefix = "auth.security.jwt")
public class JwtProperties {

	/**
	 * Token过期时间，单位为毫秒，默认为1个小时
	 */
	private Long ttl;

	/**
	 * token的签发者
	 */
	private String issuer;

	/**
	 * token名称；accessToken
	 */
	private String key;

}

